<div class="header">
        <nav class="navbar navbar-default navbar-fixed-top" role="navigation"> 
            <!-- Brand and toggle get grouped for better mobile display -->
            <div style="width:1150px;margin:0 auto;">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="{:U('Index/hall')}"><img src="__PUBLIC__/images/logo_r2_c2.png" height="50" data-toggle="tooltip" data-placement="bottom" title="有思想的人都在这儿" /></a>
                </div>

                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> 
                    <ul class="nav navbar-nav">
                       
                           <li class="hall">
                           	<a href="{:U('Index/hall')}" class="icon">
                            	<span class="fa fa-globe fa-2x tip-btn" data-toggle="tooltip" data-placement="bottom" title="世界">
                                </span>
                            </a>
                       	</li>
                        
                        <li class="home">
                        	<a href="{:U('Index/index')}" class="icon">
                            	<span class="fa fa-home fa-2x tip-btn" data-toggle="tooltip" data-placement="bottom" title="主页">
                                </span>
                            </a>
						</li>
                        
                        <li id="search-bf">
                        	<a href="#" class="icon">
                            	<span class="fa fa-search fa-2x tip-btn " data-toggle="tooltip" data-placement="bottom" title="搜索">
                                </span>
							</a>
                        </li>
                        
                        <li id="search-af" style="display:none; width:0px; margin-top:2px;">
                            <div class="input-group search">
                            	<form class="form-search" id="form-search" action="{:U('Index/search')}">
                                	<input type="search" name="words" id="s-input" class="form-control input-medium search-query" placeholder="搜索专业、讨论、成员">			
                                </form>
                            </div><!-- /input-group -->
                        </li>
                        
                    </ul>
                    <ul class="nav navbar-nav navbar-right">
                        <li>
                          <if condition="$session neq ''"> 
                            <a href="#" class="icon" data-toggle="mess-popover" data-trigger="focus"><i class="fa fa-bell-o fa-2x" onMouseOver="$(this).tooltip('show')" data-toggle="tooltip" data-placement="bottom" title="消息"></i><span class="badge mess-nord">{$messNum}</span></a>
                            <div class="mess-popover bottom" id="mess">
                                <div class="arrow"></div>
                                <div class="mess-popover-content">
                                    <ul id="myTab" class="nav mess-pills nav-justified">
                                        <li class="active"><a href="#home" data-toggle="tab" class="messRead" value="1">观点<span class="badge mess-nord">10</span></a></li>
                                        <li class=""><a href="#profile" data-toggle="tab">请求<span class="badge mess-nord">10</span></a></li>
                                        <li class=""><a href="#dropdown1" data-toggle="tab" class="messRead" value="2">通知<span class="badge mess-nord">10</span></a></li>
                                    </ul>
                                    <div id="myTabContent" class="tab-content">
                                        <div class="tab-pane fade active in" id="home">
                                      <foreach name="messList" item="mvo"> 
                                       <if condition="$mvo['MessType'] lt 3"> 
                                            <div class="mess mess-close messHide">
                                                <button type="button" class="close refusal" data-dismiss="mess-close" aria-hidden="true" valueM="{$mvo['Mid']}" mtype="{$mvo['MessType']}">&times;</button>
                                                <div class="dropdown-img">
                                                    <a href="{:U('Index/hispage',array('hispage'=>$mvo['uMid']))}"><img src="{$mvo['uMimg']}" width="40" /></a>
                                                </div>
                                                <div class="dropdown-body">
                                                    <div class="dropdown-title">
                                                        <span> <a href="{:U('Index/hispage',array('hispage'=>$mvo['uMid']))}">{$mvo['uMname']}</a></span>说
                                                    </div>
                                                    <div class="dropdown-cont">
                                                        <div class="dropdown-cont-title">{$mvo['MessContent']}</div>
                                                        <if condition="$mvo['MessType'] eq 1"> 
                                                         <a href="{:U('Index/discuss',array('aId'=>$mvo['aMid']))}"> {$mvo['aMcontent']|strip_tags}......</a>
                                                         <else/>
                                                         <a href="{:U('Index/article',array('aid'=>$mvo['aMid']))}"> {$mvo['aMcontent']|strip_tags}......</a>
                                                      </if> 
                                                        
                                                    </div>
                                                </div>
                                                <div class="clearfix"></div>
                                            </div>
                                        </if> 
                                          </foreach>
                                        </div>
                                        <div class="tab-pane fade" id="profile">
                                        <foreach name="messList" item="mvo">
                                          <if condition="($mvo['MessType'] egt 3 ) and ($mvo['MessType'] elt 5)">
                                         <div class="coled">
                                          <div class="foryou mess-close">
                                                <button type="button" class="close refusal" data-dismiss="mess-close" aria-hidden="true" valueM="{$mvo['Mid']}" mtype="{$mvo['MessType']}">&times;</button>
                                                <div class="dropdown-img">
                                                    <img src="{$mvo['uMimg']}" width="40" class="img-circle" />
                                                </div>
                                                <div class="dropdown-body">
                                                    <div class="dropdown-title">
                                                        <span>{$mvo['uMname']}</span>
                                                       <if condition="$mvo['MessType'] eq 3">
                                                        申请<span class="read-over">加入讨论</span>
                                                       <elseif condition="$mvo['MessType'] eq 4"/>
                                                        申请<span class="read-over">补充文章</span>
                                                         <else/>                                                      邀请<span class="read-over">参与讨论</span>
                                                       </if>
                                                    </div>
                                                    <div class="dropdown-cont">
                                                       
                                                        {$mvo['aMcontent']|strip_tags}......
                                                    </div>
                                                </div>
                                                <div class="clearfix"></div>
                                                <div class="dropdown-footer hidden">
                                                 <if condition="$mvo['MessType'] eq 5">
                                                  <a href="{:U('Index/discuss',array('aId'=>$mvo['aMid']))}" ><button type="button" class="btn btn-danger allow" valueU="{$mvo['uMid']}" valueA="{$mvo['aMid']}" valueM="{$mvo['Mid']}" mtype="{$mvo['MessType']}">进入讨论</button></a>
                                                 <else/>
                                                    <button type="button" class="btn btn-primary allow" valueU="{$mvo['uMid']}" valueA="{$mvo['aMid']}" valueM="{$mvo['Mid']}" mtype="{$mvo['MessType']}">允许</button>
                                                   <button type="button" class="btn btn-default refusal" valueM="{$mvo['Mid']}" mtype="{$mvo['MessType']}" >忽略</button>
                                                  </if>
                                                </div>
                                           </div>
                                           </div>
                                          </if>
                                         </foreach>
                                        </div>
                                        <div class="tab-pane fade" id="dropdown1">
                                      <foreach name="messList" item="mvo">
                                    
                                       <if condition="$mvo['MessType'] eq 6">
                                            <div class="discuss mess-close">
                                                <button type="button" class="close refusal" data-dismiss="mess-close" aria-hidden="true" valueM="{$mvo['Mid']}" mtype="{$mvo['MessType']}">&times;</button>
                                                <div class="dropdown-img">
                                                    <img src="{$mvo['uMimg']}" width="40" class="img-circle" />
                                                </div>
                                                <div class="dropdown-body">
                                                    <div class="dropdown-title">
                                                        <span>{$mvo['uMname']}</span><span class="agree">同意</span>参与
                                                    </div>
                                                    <div class="dropdown-cont">
                                                        <div class="dropdown-cont-title"></div>
                                                       <a href="{:U('Index/discuss',array('aId'=>$mvo['aMid']))}" >{$mvo['aMcontent']|strip_tags}</a>
                                                    </div>
                                                </div>
                                                <div class="clearfix"></div>
                                                <div class="dropdown-footer hidden">
                                                    <a href="{:U('Index/discuss',array('aId'=>$mvo['aMid']))}" ><button type="button" class="btn btn-danger">进入讨论</button></a>
                                                </div>
                                            </div>
                                        <elseif condition="$mvo['MessType'] eq 7"/>
                                             
                                             <div class="discuss mess-close">
                                               <button type="button" class="close refusal" data-dismiss="mess-close" aria-hidden="true" valueM="{$mvo['Mid']}" mtype="{$mvo['MessType']}">&times;</button>
                                                <div class="dropdown-img">
                                                    <img src="{$mvo['uMimg']}" width="40"  class="img-circle" />
                                                </div>
                                                <div class="dropdown-body">
                                                    <div class="dropdown-title">
                                                        <span>{$mvo['uMname']}</span><span class="agree">同意</span>补充
                                                    </div>
                                                    <div class="dropdown-cont">
                                                        <div class="dropdown-cont-title"></div>
                                                       <a href="{:U('Index/discuss',array('aId'=>$mvo['aMid']))}" >{$mvo['aMcontent']|strip_tags}</a>
                                                    </div>
                                                </div>
                                                <div class="clearfix"></div>
                                                <div class="dropdown-footer hidden">
                                                   <a href="{:U('Index/article',array('aid'=>$mvo['aMid']))}" > <button type="button" class="btn btn-danger">立即补充</button></a>
                                                </div>
                                            </div>
                                            <elseif condition="$mvo['MessType'] eq 8"/>
                                              <div class="discuss mess-close">
                                               <button type="button" class="close refusal" data-dismiss="mess-close" aria-hidden="true" valueM="{$mvo['Mid']}" mtype="{$mvo['MessType']}">&times;</button>
                                                <div class="dropdown-img">
                                                    <img src="{$mvo['uMimg']}" width="40" />
                                                </div>
                                                <div class="dropdown-body">
                                                    <div class="dropdown-title">
                                                        <span>{$mvo['uMname']}</span><span class="agree">同意</span>参与
                                                    </div>
                                                    <div class="dropdown-cont">
                                                        <div class="dropdown-cont-title"></div>
                                                       <a href="{:U('Index/discuss',array('aId'=>$mvo['aMid']))}" > <a href="{:U('Index/discuss',array('aId'=>$mvo['Maid']))}" >{$mvo['aMcontent']|strip_tags}</a></a>
                                                    </div>
                                                </div>
                                                <div class="clearfix"></div>
                                                <div class="dropdown-footer hidden">
                                                   <a href="{:U('Index/discuss',array('aId'=>$mvo['aMid']))}" ><button type="button" class="btn btn-danger">进入讨论</button></a>
                                                </div>
                                            </div>          
                                        </if>
                                          </foreach>
                                        </div>

                                    </div>

                                    <div class="dropdown-menu-footer"><a href="{:U('Index/message')}">查看消息中心</a></div>
                                </div>
                            </div>
                     <else/>
                     <div class="dlzc cursor" onclick="$('#myModal').modal('toggle');">进入</div>
                     </if>
                        </li>
                        <li>
                         <if condition="$session neq ''">
                        <a href="{:U('Index/mypage')}" class="topimg"><img id="titleImg" src="{$uCont['user_img']}" height="40" class="img-circle" onMouseOver="$(this).tooltip('show')" data-toggle="tooltip" data-placement="bottom" title="个人中心" /></a></li>
                        <else/>
                        <div class="dlzc cursor" onclick="$('#ModalZc').modal('toggle');">不要点这</div>
                        </if>
                    </ul>
                </div><!-- /.navbar-collapse -->
            </div>
        </nav>
</div>
    <span class="sl" value="{$session}"></span>
       <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true" >&times;</button>
                        <h4 class="modal-title">进入智慧公社</h4>
                    </div>
     <form class="form-horizontal" role="form" action="{:U('Login/Ulogin')}" method="post">
                    <div class="modal-body" style="font-family:'微软雅黑'; font-size:16px;">
                    
                       
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label"  >邮箱</label>
                                <div class="col-sm-9">
                                    <input type="email" class="form-control" id="inputEmail3" placeholder="Email" name="email">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label" >密码</label>
                                <div class="col-sm-9">
                                    <input type="password" class="form-control" id="inputPassword3" placeholder="Password" name="password">
                                </div>
                            </div>
                            
                       
                    </div>
                    <div class="modal-footer" style="margin-top:-10px;">
                        <input type="hidden" value="{$url}"  name="sele"/>
                        <a href="http://stuccess.org/Login/signup/yq/82f6c1c0ee99af84350a79e45cb5e29a" target="_blank">← 我也是有求知欲、乐于思考的人，立即加入！</a>
                        <input type="submit" class="btn btn-info" id="login"  value="进入" />
                    </div>
                  </form>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->
        
<!--注册的模态框-->
        <div class="modal fade" id="ModalZc" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header" style="font-size:24px; color:#99A9C8;">
                      智慧公社——全球第二好的讨论交流平台
                    </div>
                    <div class="modal-body" id="urlCont" style="font-size:15px;">
                            每个人都会对一些现象或事物，有自己的见解和疑惑
                            <br /><br />
            				但绝对需要一种方式
                            <br /><br />
                            去验证见解是否全面，并且解决疑惑
                            <br /><br />
                            那么，最好的方式，就是和大家一起讨论
                            <br /><br /><br />
                            在语言的交锋中
                            <br /><br />
                            你会比较+组合大量观点，做出评价、判断、取舍
                            <br /><br />
                            从而不断提升知识量
                            <br /><br />
                            并获得全面的思考能力，这也是最有价值的
                            <br /><br />
							要相信，你比你想象的更强大
                    </div>
                    <div class="modal-footer" style="font-size:18px; text-align:left">
                     <a href="http://stuccess.org/Login/signup/yq/82f6c1c0ee99af84350a79e45cb5e29a" target="_blank">我也是有求知欲、乐于思考的人，立即加入 →</a>
                    </div>
                   </div></div> </div>
<span class="sl" value="{$session}"></span>
<div id="roll"> <a id="roll_top" href="javascript:;" style="display: block; "><img src="__PUBLIC__/images/roll_top.png"/></a> </div> 

<script>
var urlMessSeek="{:U('Index/MessSeek')}";
var urlMessLPull="{:U('Index/MessPush')}";
var urlMessIgnore="{:U('Index/MessIgnore')}";
var urlLink="__URL__";
var urlMessRead="{:U('Index/messRead')}";
var articleUrl="__URL__";
var urlDiscuss="{:U('Index/discuss')}";
var urlHispage="{:U('Index/hispage')}";
var urlLoad="__SELF__";
</script>
<script src="__PUBLIC__/js/socket.io.js"></script>
<script src="__PUBLIC__/js/md5.js"></script>
<script src="__PUBLIC__/js/title.js"></script>